package com.gc.compay.controller;

import com.gc.compay.entity.YearVo;
import com.gc.compay.service.LogService;
import com.gsj.common.pojo.R;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @program: clms-nine
 * @description: 日志的控制层
 * @author: 智高超
 * @create: 2021-07-26 15:14
 **/
@RestController
@RequestMapping("compay/log")
public class LogController {

    @Resource
    LogService logService;

    @PostMapping("/logdata")
    public R Log( @RequestBody  YearVo years ){
        System.out.println(years);
        return logService.Log(years);
    }
}
